package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 尺码实体类
 *
 * @author 吴旭
 */
public class SizeEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 3302093728821402784L;
    private Long SizeId;
    private Long CatalogueId;
    private String CatalogueName;
    private String SizeCode;              // 编码
    private String SizeName;              // 尺码名称
    private String BarcodeSize;           // 条码尺码
    private String Description;

    public Long getSizeId() {
        return SizeId;
    }

    public void setSizeId(Long SizeId) {
        this.SizeId = SizeId;
    }

    public Long getCatalogueId() {
        return CatalogueId;
    }

    public String getSizeCatalogueName() {
        return CatalogueName;
    }

    public void setCatalogueId(Long CatalogueId) {
        this.CatalogueId = CatalogueId;
    }

    public void setCatalogueName(String CatalogueName) {
        this.CatalogueName = CatalogueName;
    }

    public String getSizeCode() {
        return SizeCode;
    }

    public void setSizeCode(String SizeCode) {
        this.SizeCode = SizeCode;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    public String getBarcodeSize() {
        return BarcodeSize;
    }

    public void setBarcodeSize(String BarcodeSize) {
        this.BarcodeSize = BarcodeSize;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof SizeEntity)) {
            return false;
        }

        final SizeEntity that = (SizeEntity) o;

        return new EqualsBuilder()
            .append(this.getSizeId(), that.getSizeId())
            .isEquals();

    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getSizeId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
